package cn.tedu.eb_film;

import com.alibaba.fastjson.Fastjson1xReaderModule;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.Date;

/**
 * @author ライナー・ロンテ
 * @since 2023/4/19 12:15
 */
public class Test {
    public static void main(String[] args) {
//        Integer[][] integers = {{1,2,3},{3,4,5}};
//        String jsonString = JSON.toJSONString(integers);
//        System.out.println(jsonString);
//        Integer[][] object = JSON.parseObject(jsonString, Integer[][].class);
//        System.out.println(Arrays.deepToString(object));
//        String phone = "15892424994";
//        System.out.println(phone.substring(0, 3));
//        System.out.println(phone.substring(phone.length() - 4));
        final LocalDateTime now = LocalDateTime.now();
        System.out.println(now);
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("MM月dd日  HH:mm");
        String format = now.format(dateTimeFormatter);

        System.out.println(format);
        if (format.charAt(0) == '0') {
            format = format.substring(1);
            System.out.println(format);
        }

    }
}
